<?php

// header("Access-Control-Allow-Origin:http://127.0.0.1");
// header("Access-Control-Allow-Origin:http://192.168.59.120");

// 允许任何人访问
header("Access-Control-Allow-Origin:*");

header('content-type:text/html;charset="utf-8');

$host = 'localhost:3306';
$name = 'root';
$password = 'root';
$databaseName = 'nike_project';
$connect = mysqli_connect($host, $name, $password, $databaseName);

if (!$connect) {
    die('数据库连接失败');
}